package com.example.lianguisystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.Date;

@Data
@TableName("T_LIAN_GUI_PRINT_RECORD")
@ApiModel("莲桂标签表")
@CrossOrigin
public class LianGuiLabelRecord {
    private String cpTypeNo;
    private String designNo;
    private Double weight;
    private String printWorkshop;
    private String printer;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
    @TableId()
    private String id;
    private String yuanGongBianHao;
    private String label;

    @ApiModelProperty("状态 0-未生成销售开单- 未入库，1-已生成销售开单-已销售，" +
            "2-已扫描但未生成销售开单-已扫描， 3-已生成验收单和组装单-已入库 ， 4-已领料 -在领料模块出仓 , 5 - 已报工 ，6 - 已盘点，7-已退料")
    private Byte status;
    private String client;
    private String warehouse;
    private String invoiceNumber;

    @ApiModelProperty("销售开单id")
    private Integer ssaleBillid;

    @ApiModelProperty("销售开单明细序号")
    private Integer itemNo;

    @ApiModelProperty("销售清单单号")
    private String sellOrderId;

    @ApiModelProperty("车牌-弃用")
    private String plate;

    @ApiModelProperty("品名备注")
    private String cpTypeNoRemark;


    @ApiModelProperty("司机身份证")
    @TableField(exist = false)
    private String identityCardUrl;

    @ApiModelProperty("司机行驶证")
    @TableField(exist = false)
    private String registrationLicenseUrl;

    @ApiModelProperty("司机驾驶证")
    @TableField(exist = false)
    private String drivingLicenseUrl;
    @TableField(exist = false)
    private String name;

    @ApiModelProperty("分切机")
    private String machine;
    @ApiModelProperty("规格（幅宽）")
    private String extent;
    @ApiModelProperty("层数")
    private String pilesNum;
    @ApiModelProperty("定量")
    private String ration;
    @ApiModelProperty("直径")
    private String diameter;
    @ApiModelProperty("接头数")
    private String pieceUps;
    @ApiModelProperty("机台")
    private String drillingCrew;

    @ApiModelProperty("销货打印日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date saleOrderDate;

    @ApiModelProperty("身份记录id")
    private String idCardId;
    @ApiModelProperty("质检员")
    private String qualityInspector;
    @ApiModelProperty("流水号")
    private String serialNum;

    @ApiModelProperty("车牌")
    @TableField(exist = false)
    private String officialPlate;


    @TableField(exist = false)
    private Boolean isChecked = false;


    @ApiModelProperty("标签张数/小计卷数")
    @TableField(exist = false)
    private Integer quantity;

    @ApiModelProperty("销售订单记录id")
    private String salesOrderId;
    @ApiModelProperty("app版本")
    private String version;
    @ApiModelProperty("工作中心")
    @TableField(exist = false)
    private String workshop;
    @ApiModelProperty("新标签id")
    private String newLabelId;
    @TableField(exist = false)
    @ApiModelProperty("工作中心id")
    private Integer workshopid;


    @ApiModelProperty("销售订单单号")
    @TableField(exist = false)
    private String salesOrder;
    @ApiModelProperty("盘点id")
    @TableField(exist = false)
    private String panDianId;
    @ApiModelProperty("")
    @TableField(exist = false)
    private String billcode;
}
